//
//  STProjectNavigationController.swift
//  SlowTrajectory
//
//  Created by iOS-Czz on 2023/10/23.
//

import UIKit
import WXNavigationBar

class STProjectNavigationController: UINavigationController {
    // 重写这两个方法 修复 控制 preferredStatusBarStyle 方法无效
    override var childForStatusBarHidden: UIViewController? {
        return self.topViewController
    }
    
    override var childForStatusBarStyle: UIViewController? {
        return self.topViewController
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        WXNavigationBar.NavBar.backImage = UIImage(named: "icon_back")?.withRenderingMode(UIImage.RenderingMode.alwaysOriginal)
        WXNavigationBar.NavBar.backgroundColor = NAV_BG_COLOR
    }
    
}
